﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;

namespace SmallProgram.Controls
{
    public static class NativeMethods
    {
        public const int SC_CLOSE = 61536;
        public const int MF_ENABLED = 0;
        public const int MF_GREYED = 1;
        [DllImport("user32")]
        public static extern IntPtr GetSystemMenu(IntPtr hWnd, int revert);
        [DllImport("user32")]
        public static extern int EnableMenuItem(IntPtr hWndMenu, int itemID, int enable);
    }
}
